import Vue from 'vue'
import Router from 'vue-router'
// const Index = () => import('../views/index.vue')
// const Home = () => import('../views/home.vue')
import Index from '../views/index.vue'
import Home from '../views/home.vue'

Vue.use(Router)
const router = new Router({
    mode: 'history',
    scrollBehavior: () => ({ y: 0 }),
    routes: [
        {
            path: '/index',
            component: Index
        },
        {
            path: '/home',
            component: Home
        },
        { path: '/', redirect: '/index' }
    ]
})

export default router
